#ifndef VIEWPANEL_H
#define VIEWPANEL_H

#include <QWidget>
#include <vector>
#include <map>
using namespace std;
class GLPanel;
class Model;
#include "mygui.h"
#include "edumygui.h"


namespace Ui {
    class ViewPanel;
}

class ViewPanel : public QWidget
{
    Q_OBJECT

public:
    explicit ViewPanel(QWidget *parent = 0);
    ~ViewPanel();
    void setMyUI( MyGUI* _ui );
    void setUserOperation( int _oper, Qt::CursorShape _cursor );
    void setTopolViewFlag( int _type, bool _isVisible );
    void setGridSnapData( bool _isVisible, bool _isSnapOn, double _dx, double _dy );
    bool getGridSnapInfo( double& _dx, double& _dy );
    bool hasUndoing();
    bool hasRedoing();
    Model* getModel();
//*****************************************
	void setMyUI( EduMyGUI* _ui );
	void selectRegion(vector<int> numFace);
    void setArea(double& Area, int numFace);
	void setCentroide( double& xc,double& yc, int numFace);

private:
    Ui::ViewPanel *ui;
    GLPanel* c;
};

#endif // VIEWPANEL_H
